-- GENERATED SPELL FOR [King Bangalash] --


function spell0_731(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(16832,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_731', 545, 1)
end

function spell1_731(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(1755,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_731', 0, 1)
end

function spell2_731(pUnit, Event) --@Dash,Self--
pUnit:FullCastSpellOnTarget(61684,pUnit)
pUnit:RegisterEvent('Sorts_731', 16000, 1)
end

function spell3_731(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14919,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_731', 0, 1)
end

function spell4_731(pUnit, Event) --@Prowl,Self--
pUnit:FullCastSpellOnTarget(24452,pUnit)
pUnit:RegisterEvent('Sorts_731', 0, 1)
end

function spell5_731(pUnit, Event) --@Rake,n/a--
pUnit:FullCastSpellOnTarget(59883,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_731', 9000, 1)
end

function Sorts_731(pUnit, Event)
local choix_sorts_731 = math.random(0, 5)
if choix_sorts_731 == 0 then
pUnit:RegisterEvent('spell0_731', 1, 1)
end
if choix_sorts_731 == 1 then
pUnit:RegisterEvent('spell1_731', 1, 1)
end
if choix_sorts_731 == 2 then
pUnit:RegisterEvent('spell2_731', 1, 1)
end
if choix_sorts_731 == 3 then
pUnit:RegisterEvent('spell3_731', 1, 1)
end
if choix_sorts_731 == 4 then
pUnit:RegisterEvent('spell4_731', 1, 1)
end
if choix_sorts_731 == 5 then
pUnit:RegisterEvent('spell5_731', 1, 1)
end
end

function mob731_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_731', math.random(1500, 3000), 1)
end

function mob731_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob731_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob731_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(731, 1, 'mob731_Action')
RegisterUnitEvent(731, 2, 'mob731_Leave')
RegisterUnitEvent(731, 3, 'mob731_Kill')
RegisterUnitEvent(731, 4, 'mob731_Die')
